import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
// 初始化样式表
import '@/styles/index.scss'
// 导入 svgIcon
import installIcons from '@/icons'
// 导入路由前置守卫
import './permission'
// 导入i18n实例
import i18n from '@/i18n'
// 全局属性
import installFilter from '@/filters'
// 指令
import installDirectvies from '@/directives'
const app = createApp(App)
installElementPlus(app)
installIcons(app)
installFilter(app)
installDirectvies(app)

app
  .use(store)
  .use(router)
  .use(i18n)
  .mount('#app')
